const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'https://api.iynn.cn/film/api/v1',
        pathRewrite: { '^/api': '' },
      },
      '/admin': {
        target: 'http://localhost:54188/front/api/user/',
        pathRewrite: { '^/admin': '' },
      },
    },
  },
})
